﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace Shapes
{
	public class PartnersContainer
	{
		private List<Circle> _partners;

		public PartnersContainer()
		{
			_partners = new List<Circle>();
		}

		public void Add(Circle partner)
		{
			_partners.Add(partner);
		}

		public void Remove(Circle partner)
		{
			_partners.Remove(partner);
		}

		public void RemoveAt(int index)
		{
			_partners.RemoveAt(index);
		}

		public Circle this[int index]
		{
			get { return _partners[index]; }
			set { _partners[index] = value; }
		}

		public int IndexOf(Circle circle)
		{
			return _partners.IndexOf(circle);
		}

		public int Count
		{
			get { return _partners.Count; }
		}


	}
}
